package com.imc.platform.base.student.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.imc.platform.base.student.dao.IStudentMapper;
import com.imc.platform.base.student.service.IStudentService;
import com.imc.platform.base.user.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 类描述:学生管理
 * 开发者:SJC
 * 创建时间:2018-8-15 19:30:36
 */
@Service
public class StudentServiceImpl implements IStudentService {
    @Autowired
    IStudentMapper iStudentMapper;

    @Override
    public PageInfo <User> queryStudent(String duty,String orgId,int pageNum, int pageSize) {
        PageHelper.startPage(pageNum, pageSize, true);
        PageInfo d = new PageInfo <>(iStudentMapper.queryStudent(duty,orgId));
        return d;
    }
}
